package chainofresponsibility.main.message;

/**
 * 学生实现类
 */
public class Student implements IStudent {
    //病情的大小状态
    private int state = -1;
    //请假消息
    private final String message;

    public Student(int state, String message) {
        this.state = state;
        this.message = message;
    }

    @Override
    public int getState() {
        return this.state;
    }

    @Override
    public String getRequestMessage() {
        return this.message;
    }
}
